import * as Draw from './draw.js';
//约定参数
//

//白色背景绘制器
 export const bgPainter = {
 	paint :function(sprite,cxt){
 		const rect = Draw.Rect(sprite.left,sprite.top,sprite.width,sprite.height);
 		cxt.beginPath();
 		cxt.rect(sprite.left,sprite.top,sprite.width,sprite.height);
 		cxt.fillStyle = '#fff';
 		cxt.fill();
 		cxt.restore();
 	}
 }